package com.ctsi.ssdc.service;


import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallGoodsProduct;
import com.ctsi.ssdc.domain.LitemallGoodsProductExample;
import com.ctsi.ssdc.service.StrengthenBaseService;

import java.util.List;

/**
 * Service Interface for managing LitemallGoodsProduct.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallGoodsProductService 
	extends StrengthenBaseService<LitemallGoodsProduct, Integer, LitemallGoodsProductExample>{


    /**
    * GET  /litemallGoodsProducts : get the litemallGoodsProducts firstStringBaseColumn.
    */
    PageResult<LitemallGoodsProduct> findFirstStringColumn(String specifications ,Pageable pageable);

    LitemallGoodsProduct findById(Integer productId);

    int reduceStock(Integer productId, Short number);


    int addStock(Integer productId, Short number);

    List<LitemallGoodsProduct> queryByGid(Integer gid);
}
